package cn.cqone.crm.utils;

import java.util.ArrayList;
import java.util.List;

/**
 * PageList对象
 * @param <T>
 */
public class PageList<T> {
    //返回总条数
    private Integer total;
    //返回分页数据
    private List<T> result = new ArrayList<>();

    public PageList(){

    }
    public PageList(Integer total, List<T> result) {
        this.total = total;
        this.result = result;
    }

    public Integer getTotal() {
        return total;
    }

    public void setTotal(Integer total) {
        this.total = total;
    }

    public List<T> getResult() {
        return result;
    }

    public void setResult(List<T> result) {
        this.result = result;
    }
}
